//
//  RSDB.h
//  Cellar Tracker
//
//  Created by Johnnie Walker on 10/07/2008.
//  Copyright 2008 Random Sequence. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RSDBRecord.h"
#import "RSDBTable.h"
#import "RSDBDatabase.h"
#import "RSDBRelation.h"
#import "RSDBQuery.h"

@interface RSDB : NSObject {
}

+(RSDBDatabase *)defaultDatabase;
+(void)setDefaultDatabase:(RSDBDatabase *)aDatabase;

+(RSDBTable *)getTable:(NSString *)tableName;
+(RSDBTable *)getTable:(NSString *)tableName database:(RSDBDatabase *)database;

// Release the cache of tables
+(void)flushTables;

// Helper method to convert from a va_list to an NSArray
+(NSArray *)argumentsFromSQL:(NSString *)sql args:(va_list)args;
@end
